import 'package:flutter_keep_book/app/model/vo/item_type_vo.dart';
import 'package:flutter_keep_book/core/network/api/list_view_model.dart';
import 'package:flutter_keep_book/core/utils/m_logs.dart';

import '../../../core/network/network.dart';

class ItemTypeViewModel extends ListViewModel<ItemTypeVo> {
  @override
  Future<Result<List<ItemTypeVo>>> requestData({
    required int page,
  }) async {
    final result = await ItemTypeList.requestItemTypeList(page: page);
    return result.map((data) => data?.list);
  }
}
